load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "coldataext",
    srcs = [
        "datum_vec.go",
        "extended_column_factory.go",
        "vec_handler.go",
    ],
    importpath = "github.com/cockroachdb/cockroach/pkg/col/coldataext",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/col/coldata",
        "//pkg/col/typeconv",
        "//pkg/sql/colexecerror",
        "//pkg/sql/memsize",
        "//pkg/sql/rowenc",
        "//pkg/sql/rowenc/valueside",
        "//pkg/sql/sem/eval",
        "//pkg/sql/sem/tree",
        "//pkg/sql/types",
        "//pkg/util/buildutil",
        "//pkg/util/duration",
        "//pkg/util/encoding",
        "//pkg/util/json",
        "//pkg/util/timeutil/pgdate",
        "@com_github_cockroachdb_apd_v3//:apd",
        "@com_github_cockroachdb_errors//:errors",
    ],
)

go_test(
    name = "coldataext_test",
    size = "small",
    srcs = ["datum_vec_test.go"],
    embed = [":coldataext"],
    deps = [
        "//pkg/col/coldata",
        "//pkg/sql/sem/eval",
        "//pkg/sql/sem/tree",
        "//pkg/sql/types",
        "//pkg/util/json",
        "//pkg/util/leaktest",
        "@com_github_stretchr_testify//require",
    ],
)
